Readme for "Champions and Pariahs: Image Effects of Naming and Shaming"
Lotem Bassan-Nygate

Journal of Politics

OVERVIEW
This folder contains all the necessary data and R scripts to create tables and figures from the main text and the supplementary material.

COMPUTING ENVIRONMENT
Software: R version 4.4.1 (2024-06-14), Rstudio 2024.04.2+764
Computer Operating system: macOS 14.5 (23F79)
Total Number of Cores:	11 (5 performance and 6 efficiency)
Memory: 36 GB


REQUIRED R PACKAGES

Package                        	  Version
abind                               1.4.8
admisc                               0.37
backports                           1.5.0
bartCause                           1.0.9
base                                4.4.1
base64enc                           0.1.3
bayestestR                         0.15.2
bit                                 4.6.0
bit64                             4.6.0.1
boot                               1.3.31
broom                               1.0.7
cachem                              1.1.0
car                                 3.1.3
carData                             3.0.5
checkmate                           2.3.2
cli                                 3.6.4
cluster                             2.1.8
codetools                          0.2.20
colorspace                          2.1.1
compiler                            4.4.1
correlation                         0.8.7
curl                                6.2.1
CVXR                               1.0.15
data.table                         1.17.0
datasets                            4.4.1
datawizard                          1.0.1
dbarts                             0.9.30
DBI                                 1.2.3
devtools                            2.4.5
digest                             0.6.37
dplyr                               1.1.4
effectsize                          1.0.0
ellipsis                            0.3.2
estimatr                            1.0.6
evaluate                            1.0.3
expm                                1.0.0
exr                                 0.1.0
farver                              2.1.2
fastDummies                         1.7.5
fastmap                             1.2.0
fastmatch                           1.1.6
forcats                             1.0.0
foreach                             1.5.2
foreign                            0.8.88
Formula                             1.2.5
fs                                  1.6.5
furrr                               0.3.1
future                             1.34.0
future.apply                       1.11.3
gam                                1.22.5
generics                            0.1.3
ggplot2                             3.5.1
ggpubr                              0.6.0
ggsignif                            0.6.4
ggstatsplot                        0.13.0
globals                            0.16.3
glue                                1.8.0
gmp                                 0.7.5
graphics                            4.4.1
grDevices                           4.4.1
grf                                 2.4.0
grid                                4.4.1
gridExtra                             2.3
gtable                              0.3.6
Hmisc                               5.2.2
hms                                 1.1.3
htmlTable                           2.4.3
htmltools                         0.5.8.1
htmlwidgets                         1.6.4
httpuv                             1.6.15
httr                                1.4.7
insight                             1.1.0
iterators                          1.0.14
kableExtra                          1.4.0
knitr                                1.49
later                               1.4.1
lattice                            0.22.6
lifecycle                           1.0.4
listenv                             0.9.1
lme4                               1.1.36
lpSolve                            5.6.23
ltm                                 1.2.0
lubridate                           1.9.4
magrittr                            2.0.3
MASS                               7.3.65
Matrix                              1.7.2
mediation                           4.5.0
memoise                             2.0.1
methods                             4.4.1
mime                                 0.12
miniUI                            0.1.1.1
minqa                               1.2.8
mitools                               2.4
msm                                 1.8.2
munsell                             0.5.1
mvtnorm                             1.3.3
nlme                              3.1.167
nloptr                              2.1.1
nnet                               7.3.20
nnls                                  1.6
paletteer                           1.6.0
parallel                            4.4.1
parallelly                         1.42.0
parameters                         0.24.2
patchwork                           1.3.0
pillar                             1.10.1
pkgbuild                            1.4.6
pkgconfig                           2.0.3
pkgload                             1.4.0
plyr                                1.8.9
polycor                             0.8.1
profvis                             0.4.0
progressr                          0.15.1
promises                            1.3.2
psy                                   1.2
purrr                               1.0.4
quanteda                            4.2.0
quanteda.textplots                   0.95
R6                                  2.6.1
rbibutils                             2.3
Rcpp                               1.0.14
RcppParallel                       5.1.10
Rdpack                              2.6.2
readr                               2.1.5
readtext                             0.91
reformulas                          0.4.0
rematch2                            2.1.2
remotes                             2.5.0
reshape2                            1.4.4
RItools                             0.3.4
rlang                               1.1.5
rmarkdown                            2.29
Rmpfr                               1.0.0
rpart                              4.1.24
rstantools                          2.4.0
rstatix                             0.7.2
rstudioapi                         0.17.1
sandwich                            3.1.1
scales                              1.3.0
sessioninfo                         1.2.3
shiny                              1.10.0
SparseM                            1.84.2
splines                             4.4.1
stargazer                           5.2.3
stats                               4.4.1
statsExpressions                    1.6.2
stopwords                             2.3
stringi                             1.8.4
stringr                             1.5.1
SuperLearner                       2.0.29
survey                              4.4.2
survival                            3.8.3
svd                                 0.5.8
svglite                             2.1.3
systemfonts                         1.2.1
table1                              1.4.3
tableone                           0.13.2
texreg                             1.39.4
tibble                              3.2.1
tidyr                               1.3.1
tidyselect                          1.2.1
tidyverse                           2.0.0
timechange                          0.3.0
tools                               4.4.1
tzdb                                0.5.0
urlchecker                          1.0.1
usethis                             3.1.0
utils                               4.4.1
vctrs                               0.6.5
viridisLite                         0.4.2
withr                               3.0.2
xfun                                 0.52
xml2                                1.3.7
xtable                              1.8.4
zeallot                             0.1.0
zoo                                1.8.13



SURVEY EXPERIMENT Folder:

1. Data from the survey experiment ("data.csv")
2. Code to reproduce main figures and appendix material ("code.R")
3. Code to reproduce power analysis ("power.R")
3. Figures Folder contains all figures from the main text and appendix.
	1) ally_perception.pdf = Figure E6, appendix
	2) ally_perception2.pdf = Figure E14, appendix
	3) byparty.pdf = Figure E11, appendix
	4) dropcountry_shamer.pdf = Figure E12, appendix
	5) dropcountry_target.pdf = Figure E13, appendix
	6) extr_general.pdf = Figure E15, appendix
	7) H3.pdf = Figure 5, main text
	8) H12ab.pdf = Figure 2, main text
	9) H12c.pdf = Figure 3, main text
	10) H12d.pdf = Figure 4, main text
	11) HRs_bycond.pdf = C4, appendix
	12) manipulation.pdf = Figure E5, appendix
	13) mediation1.png, mediation2.png, mediation3.png = Figure E7, appendix
	14) mediation4.png, mediation5.png, mediation6.png = Figure E8, appendix
	15) mediation7.png, mediation8.png, mediation9.png = Figure E9, appendix
	16) mediation10.png, mediation11.png, mediation12.png = Figure E10, appendix
	17) power_simulation.pdf, Figure A1, appendix
	18) target_bycond.pdf = C2, appendix
	19) shamer_bycond.pdf = C3, appendix

3. Tables Folder contains all tables from the main text and appendix.
	1) descriptives.tex = Table B1, appendix
	2) H1cControls.tex = Table D4, appendix
	3) H1control.tex = Table D2, appendix
	4) H1dcontrols.tex = Table D5, appendix
	5) H2cControls.tex = Table D6, appendix
	6) H2control.tex = Table D3, appendix
	7) H2dcontrols.tex = Table D7, appendix
	8) H3controls.tex = Table D8, appendix
	9) H12c.tex = Table 4, main text
	10) H12d.tex = Table 5, main text
	11) Sup1.tex = Table E9, appendix
	12) Sup2.tex = Table E10, appendix


